'''
# 省略连接数据库以及查询数据的步骤，数据自行模拟
#柱状图类
from pyecharts.charts import Bar
# 用来设置图表的标题
from pyecharts import options

sal=[5000,4300,2000,4666]
city=["北京","南昌","九江","上海"]
# 创建柱状图对象
bar=Bar()
# 添加x轴数据
bar.add_xaxis(city)
# 添加y轴数据
bar.add_yaxis("月薪/元",sal)
# 开始图表标题
bar.set_global_opts(title_opts=options.TitleOpts(title="各城市最低薪水图",subtitle="单位/元"))
# 开始渲染页面
bar.render("barmin.html")
'''
from pyecharts.charts import Line
from pyecharts import  options
sal=[5000,4300,2500,4500]
city=["北京","南昌","九江","成都"]
line=Line()
line.add_xaxis(city)
line.add_yaxis("月薪/元",sal)
line.set_global_opts(title_opts=options.TitleOpts(title="各城市最低薪水图",subtitle="单位/元"))
line.render("barmin.html")